<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:s="http://jboss.com/products/seam/taglib"
	xmlns:a="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:c="http://java.sun.com/jstl/core">

	<rich:modalPanel id="avisosModal" autosized="true" width="400"
		showWhenRendered="#{avisos.mostrarAviso}">
		<f:facet name="header">
			<h:panelGroup>
				<h:outputText value="#{messages['titulo.modal.Aviso']}"></h:outputText>
			</h:panelGroup>
		</f:facet>
		<h:form>
			<h:panelGrid columns="1">
				<h:outputLabel value="#{avisos.mensajeAviso}" />
				<rich:spacer height="50" />
				<h:panelGrid columns="2">
					<a:commandButton value="#{messages['boton.cerrar']}"
						actionListener="#{avisos.cerrarAviso}" reRender="avisosModal" />
					<a:commandButton value="#{messages['boton.aceptar']}"
						onclick="#{avisos.accionAvisoJS}()"
						actionListener="#{avisos.cerrarAviso}" reRender="avisosModal" />
				</h:panelGrid>
			</h:panelGrid>
		</h:form>
	</rich:modalPanel>
</ui:composition>